package com.ztgf.order.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.order.models.bo.OrderReturnExpirationDateSaveBO;
import com.ztgf.order.models.dto.OrderReturnExpirationDateDTO;

import java.util.List;

/**
 * @author: chenyu.wang
 * @date: 2020-08-26
 * @description:售后订单有效期服务
 */
public interface IOrderReturnExpirationDateService extends IService<OrderReturnExpirationDateDTO> {

    boolean add(OrderReturnExpirationDateSaveBO dateDTO);

    boolean addCheck(OrderReturnExpirationDateSaveBO bo);

    boolean extendOrderTime(Long id, Integer time);

    /**
     * @Description: 获取所有已到期的售后订单
     * @Author: WangChenYu
     * @Param: [lastNo]
     * @Date: 2020-10-12 16:26
     */
    List<OrderReturnExpirationDateDTO> queryAllExpirationAfterOrder(Long lastNo);
}
